package rest.home.entity;

import java.util.Date;

/**
 * @author xb
 * @date 2022-05-06 9:59
 * describe
 */

public class Nurse {
    private Integer nurseId; //护理人员编号
    private String nurseName; // 护理人员姓名
    private String nurseGender; // 护理人员性别
    private Double nurseSalary; // 薪水
    private Integer grade;  //级别

    @Override
    public String toString() {
        String grades=null;
        switch (grade){
            case 0:
                grades="高级护工";
                break;
            case 1:
                grades="中级护工";
                break;
            case 2:
                grades="普通护工";
                break;
        }
        return
                " 护理人员编号:" + nurseId +","+
                " 护理人员姓名:" + nurseName +","+
                " 护理人员性别:" + nurseGender +","+
                " 薪水:" + nurseSalary +","+
                " 级别:" + grades+";" ;
    }

    public Nurse() {

    }

    public Nurse(Integer nurseId, String nurseName, String nurseGender, Double nurseSalary, Integer grade) {
        this.nurseId = nurseId;
        this.nurseName = nurseName;
        this.nurseGender = nurseGender;
        this.nurseSalary = nurseSalary;
        this.grade = grade;
    }

    public Integer getNurseId() {
        return nurseId;
    }

    public void setNurseId(Integer nurseId) {
        this.nurseId = nurseId;
    }

    public String getNurseName() {
        return nurseName;
    }

    public void setNurseName(String nurseName) {
        this.nurseName = nurseName;
    }

    public String getNurseGender() {
        return nurseGender;
    }

    public void setNurseGender(String nurseGender) {
        this.nurseGender = nurseGender;
    }

    public Double getNurseSalary() {
        return nurseSalary;
    }

    public void setNurseSalary(Double nurseSalary) {
        this.nurseSalary = nurseSalary;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }
}
